<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>新浪</title>
</head>
<body>
<style>
    .nav{
        height: 50px;
        line-height: 50px;
    }
    .nav a{
        margin-left: 30px;
        text-decoration:none;
        display: inline-block;
        background-color: papayawhip;
        color: black;
       padding: 0 30px;
    }
    .nav a:hover{
        background-color: pink;
    }
</style>
<div class="nav">
    <a href="#">首页</a>
    <a href="#">新闻</a>
    <a href="#">开学啦</a>
    <a href="#">客户中心</a>
    <a href="#">云服务平台</a>
    <a href="#">登录</a>
    <a href="#">注册</a>
</div>
</body>
</html>